<template>
  <div class="commodity-footer">
    <i class="iconfont icon-cart_icon shoppingCart"></i>
    <div class="commodityBtn">
      <div class="addToCart" @click="addToCart">加入购物车</div>
      <div class="immediatelyBuy">立即购买</div>
    </div>
  </div>
</template>

<script>
export default {
  name: 'commodity-footer',
  methods: {
    addToCart() {
      this.isShow = true;
    }
  }
};
</script>

<style scoped>
  @import "../../assets/font_1001665_wneao7ah2ln/iconfont.css";

  *{
    margin: 0;
    padding: 0;
  }
  .commodity-footer{
    height: 80px;
    width: 100vw;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 999999;
    background: white;
  }
  .shoppingCart{
    position: absolute;
    top: 20px;
    left: 50px;
    font-size: 35px;
    color: #333;
  }
  .commodityBtn{
    position: absolute;
    top: 10px;
    right: 20px;
    width: 75%;
    border-radius: 50px;
    font-size: 0;
    overflow: hidden;
  }
  .commodityBtn>div{
    width: 50%;
    height: 60px;
    display: inline-block;
    font-size: 25px;
    color: white;
    line-height: 60px;
    text-align: center;
  }
  .addToCart{
    background: #f97b2e;
  }
  .immediatelyBuy{
    background: #3c9dfc;
  }
</style>
